from pyecharts import options as opts
from pyecharts.charts import Bar
from pyecharts.faker import Faker

c = (
    Bar()
        .add_xaxis(Faker.choose())
        .add_yaxis("商家A", Faker.values())
        .add_yaxis("商家B", Faker.values(), is_selected=False)  # 默认不显示
        .set_global_opts(title_opts=opts.TitleOpts(title="01.柱状图-默认取消显示某 Series"))
        .render("12柱状图选择取消显示某一种数据.html")
)
